package com.exp.base.util;

import com.exp.base.BusinessException;

public class ExceptionUtils extends org.apache.commons.lang3.exception.ExceptionUtils {
	/**
	 * 抛出高性能异常
	 * @param message
	 */
	public static void throwBusinessException(String message){
		throw new BusinessException(message);
	}
	/**
	 * 抛出高性能异常
	 * @param message
	 */
	public static void throwBusinessException(Throwable throwable){
		throw new BusinessException(throwable);
	}
	/**
	 * 抛出高性能异常
	 * @param message
	 */
	public static void throwBusinessException(String message,Throwable throwable){
		throw new BusinessException(message,throwable);
	}
	/**
	 * 抛出普通runtime异常
	 * @param message
	 */
	public static void throwRuntimeException(String message){
		throw new RuntimeException(message);
	}
	/**
	 * 抛出普通runtime异常
	 * @param message
	 */
	public static void throwRuntimeException(Throwable throwable){
		throw new RuntimeException(throwable);
	}
	/**
	 * 抛出普通runtime异常
	 * @param message
	 */
	public static void throwRuntimeException(String message,Throwable throwable){
		throw new RuntimeException(message,throwable);
	}

	
	
	
}
